import request from '@/utils/request'

// 查询BwBanner列表
export function listBwBanner(query) {
    return request({
        url: '/api/v1/bw/bannerList',
        method: 'get',
        params: query
    })
}

// 查询BwBanner详细
export function getBwBanner (bannerId) {
    return request({
        url: '/api/v1/bw/banner/' + bannerId,
        method: 'get'
    })
}


// 新增BwBanner
export function addBwBanner(data) {
    return request({
        url: '/api/v1/bw/banner',
        method: 'post',
        data: data
    })
}

// 修改BwBanner
export function updateBwBanner(data) {
    return request({
        url: '/api/v1/bw/banner',
        method: 'put',
        data: data
    })
}

// 删除BwBanner
export function delBwBanner(bannerId) {
    return request({
        url: '/api/v1/bw/banner/' + bannerId,
        method: 'delete'
    })
}
